<?php session_start(); 
//require_once ('');?>

<?php if(isset($_SESSION['user'])){ ?> 


<html>
<head>
<title>Parents Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style1 {color: #FF0000}
.style2 {color: #000000}
-->
.error_strings{ font-family:Verdana; font-size:12px; color:#660000;}
</Style>
<SCRIPT LANGUAGE="JavaScript">
<!--
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original:  Chris (javascript@crashedstar.com) -->
<!-- Web Site:  http://www.crashedstar.com/ -->

<!-- Begin
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
function getthedate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
{
 d = new Date();
 Time24H = new Date();
 Time24H.setTime(d.getTime() + (d.getTimezoneOffset()*60000) + 3600000);
 InternetTime = Math.round((Time24H.getHours()*60+Time24H.getMinutes()) / 1.44);
 if (InternetTime < 10) InternetTime = '00'+InternetTime;
 else if (InternetTime < 100) InternetTime = '0'+InternetTime;
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here

var cdate=montharray[month]+" "+daym+" "+year+" | "+hours+":"+minutes+":"+seconds+" "+dn+" "
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function goforit(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
}
window.onload=goforit
//  End -->

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
    </span>  </font></div>

<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css">
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<!-- Core QuickMenu Code -->
<style type="text/css">
<!--
body {
	background-image: url(images/my.gif);
}
-->
</style></head>
<body bgcolor=  onLoad="MM_preloadImages('images/fff_02.png','images/fff_03.gif','images/fff_05.gif')">

<!-- ImageReady Slices (Untitled-1) -->
 
 <table width="800" height="180" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
<tr>
    <td width="800" height="19" background="images/hd2.gif" bgcolor="#FFFFFF"><table width="799" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="216"><div align="left" class="style26" >
  <font size="2" color="#FFFFFF">
  <span id="clock"></span></font></div></td>
    <td width="449">&nbsp;</td>
    <td width="134"><div align="center" class="style26" >
  <font size="2" color="#ffffff">&nbsp;&nbsp;WELCOME &nbsp;<?php echo $_SESSION['user']; ?> 
  </font></div></td>
  </tr>
</table></td>
  </tr>
	
	<tr>
	  <td height="184" colspan="8" bgcolor="#FFFFFF"  ><img src="images/header.png" width="800" height="180"></td>
  </tr>
<tr bgcolor="#FFFFFF">
 <td ><ul id="MenuBar1" class="MenuBarHorizontal MenuBarActive">   
 
  <li style="width:10em"><a class="MenuBarItemSubmenu" href="parent_home.php"><strong>&nbsp;&nbsp;Payment Details</strong> </a>
     </li>
  <li style="width:10em"><a tabindex="-1" class="MenuBarItemSubmenu" href="parent_att_stud.php"><strong>Attendence.</strong></a>
     </li>
  <li style="width:10em"><a class="MenuBarItemSubmenu"   href="parent_marks.php"><strong>&nbsp;&nbsp;Marks</strong> </a>
  
 <li style="width:10em"><a class="MenuBarItemSubmenu" href='parent_graph.php'><strong>Progress Report</strong> </a>
   <li style="width:10em"><a class="MenuBarItemSubmenu" href="../logout.php"><strong>Logout</strong> </a>
     </li>
 </ul></td>
    
    <script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../../widgets/menubar/SpryMenuBarDownHover.gif", imgRight:"../../widgets/menubar/SpryMenuBarRightHover.gif"});

//-->
</script>
  </tr> 
          <tr>
            <td colspan="6" ></td>
          </tr>
<tr ><td colspan="6"><?php include 'payment_search.php'; ?></td></tr>
	<tr>
		<td height="20" colspan="6" align="center" bgcolor="#CCCCFF"><hr> <strong>All Right Reserved&copy; </strong></td>
	</tr>
</table>
<!-- End ImageReady Slices -->
</body>

</html>

<?php  } else { header("location:../index.php");   }?>

    